import Cookies from "js-cookie";
import store from "@/store";

/**
 * 权限
 * @param {*} key
 */
export function hasPermission(key) {
  return window.SITE_CONFIG["permissions"].indexOf(key) !== -1 || false;
}

/**
 * 清除登录信息
 */
export function clearLoginInfo() {
  // store.commit("resetStore");
  // Cookies.remove("token");
  // window.SITE_CONFIG["dynamicMenuRoutesHasAdded"] = false;
}
